<style>
#editKategorijaForm label,
#kategorijeAdmin label{
	display:block;
	float:left;
	text-align:right;
	padding-top:8px;
}
#kategorijeAdminPregled{
	width:700px;
	margin-top:-1px;
}
#kategorijeAdminPregled input[type=button]#newKat{
	width:auto;
	height:auto;
	margin:0px 0px 5px 0px;
	float:left;
	background-image:url(gui/icons/new.gif);
	background-position:3px center;
	background-repeat:no-repeat;
	padding-left:14px;
}
#kategorijeAdminPregled .info{
	color:#777;
	font-size:11px;
	float:right;
	padding:10px 5px 5px 0px;
}
#kategorijeAdminPregled table{
	clear:both;
}
#kategorijeAdminPregled table tr.head,
#kategorijeAdminPregled table tr.head:hover{
	font-weight:bolder;
	color:#fff;
	background:#2577BA;
}
#kategorijeAdminPregled table tr:hover{
	color:#fff;
	background:#2577BA;
}
#kategorijeAdminPregled table tr td{
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
	padding:3px 5px;
}
#kategorijeAdminPregled input[type=button]{
	width:20px;
	height:20px;
	background-position:center center;
	background-repeat:no-repeat;
	margin:0px 0px 0px 0px;
	float:none;
	cursor:pointer;
}
#kategorijeAdminPregled input[type=button].e{background-image:url(gui/icons/edit.gif)}
#kategorijeAdminPregled input[type=button].d{background-image:url(gui/icons/delete.gif)}

#editKategorijaForm{
	width:300px;
}
</style>
<div id="kategorijeAdmin">
	<form method="post" name="filterForm" id="filterForm" action="javascript:void(0)" onsubmit="var k=trim(this.kategorija.value); LoadRSDoc('delatnosti.php?a=kategorije&k='+k,'setContent')" class="area">
		<label for="kategorija">Kategorija:</label><input type="text" name="kategorija" id="kategorija" value="{{$filter_kategorija}}" />
		<input type="submit" value="prikaži" /><br clear="all" />
		<input type="hidden" id="current_page" name="cuurent_page" value="{{$current_page_num}}" />
		<ul class="letter_filter">
		{{%loop start page}}
		<li><a id="{{$current_page}}" href="javascript:void(0)" onclick="filterKategorije('{{$page}}',this)">{{$page}}</a></li>
		{{%loop end}}
	</ul>
	</form><br clear="all" />
	<div id="kategorijeAdminPregled" class="area">
		<input type="button" onclick="addKategorija()" value="Nova kategorija" id="newKat" />
		<div class="info">&nbsp;{{$count}}&nbsp;kategorija</div>
		{{$start_comment}}
		<table cellspacing="1" width="100%">
			<tr class="head">
				<td width="5%" align="center">šifra</td>
				<td width="37%">naziv <img src="gui/srb.gif" alt="srpski" title="srpski" align="absmiddle" style="border:1px solid #fff;" /></td>
				<td width="37%">naziv <img src="gui/eng.gif" alt="engleski" title="engleski" align="absmiddle" style="border:1px solid #fff;" /></td>
				<td>&nbsp;</td>
			</tr>
			{{%loop start katid}}
			<tr>
				<td align="center">{{$katid}}</td>
				<td>{{$kat}}</td>
				<td>{{$kat_eng}}</td>
				<td align="center">
					<input type="button" onclick="editKat(this)" value="" title="Izmeni" class="e" />
					<input type="button" onclick="deleteKat(this)" value="" title="Obriši" class="d" />
				</td>
			</tr>
			{{%loop end}}
		</table>
		{{$end_comment}}
	</div>
</div>